//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<IRenderTarget.h>
///	@path	~/src/graphics/
///	@date	2008/09/20
///	@desc	.

#pragma once

#include "xeres.h"

#include "graphics/IDevice.h"
#include "graphics/ITexture.h"

namespace xeres {

	// forward declaration
	class ITexture;

	/*!	
		\class	IRenderTarget
		\brief
	*/
	class IRenderTarget : public ITexture
	{
	public:

		/// \ctor
		IRenderTarget( void );

		/// \dtor
		virtual ~IRenderTarget( void );

		DECL_IOBJECT_INTERFACE( IRenderTarget , ITexture );

	public:

		/// \name Render target interface.
		//@{

		/// \brief	Apply render target to primary stage.
		virtual bool ApplyTarget( RefWeak<IDevice> device ) = 0;

		/// \brief	Get render target interface.
		virtual struct IUnknown * GetRenderTargetInterface( void ) = 0;

		//@}
	};
	
} // namespace xeres
